
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../common/top.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div id="Catalog" >

    <form action="signOn" method="post" name="a">
        <p>Please enter your username and password.</p>
        <p><font color="red" id="error-msg"></font></p>
        <a href="signonForm">Sign in by username and password!</a>
        <div class="user-form-item" style="padding-bottom: 10px">
            Email:<input type="text" name="email" id="email" >
        </div>
        <div class="user-form-item" style="padding-bottom: 10px">
            Token:<input type="text" name="token" id="token" >
        </div>
<%--        <p> <br />--%>
<%--            Token:<input type="text" name="token" value="${requestScope.token}" >--%>
<%--        </p>--%>
        <input type="submit" value="getVerification" name="getCode" id="getCode" >
        <input type="submit" value="loginByEmail" name="loginByEmail" id="loginByEmail" >

    </form>
    Need a user name and password?

    <a href="registerForm">Register Now!</a>

</div>

<%@ include file="../common/bottom.jsp" %>
<script>
    function getVerification(){
        document.a.action="verification";
        document.method="post";
        document.a.submit();
    }
    function signon() {
        document.a.action="signOn";
        document.method="post";
        document.a.submit();
    }
</script>
<script src="js/signOnByEmail.js"></script>